import request from '@/utils/request'
export function list(params) {
  return request({
    url: '/admin/auction/list',
    method: 'get',
    params: params
  })
}

export function groupList(params) {
  return request({
    url: '/auction/list',
    method: 'get',
    params: params
  })
}



export function save(data) {
  return request({
    url: '/admin/auction/save',
    method: 'post',
    data: data
  })
}


export function del(ids) {
  return request({
    url: '/admin/auction/del/' + ids,
    method: 'post'
  })
}

export function update(data) {
  return request({
    url: '/admin/auction/update',
    method: 'post',
    data: data
  })
}

export function audit(data) {
  return request({
    url: '/admin/auction/audit',
    method: 'post',
    data: data
  })
}

export function unAudit(data) {
  return request({
    url: '/admin/auction/unAudit',
    method: 'post',
    data: data
  })
}

export function find(id) {
  return request({
    url: '/admin/auction/find/' + id,
    method: 'get'
  })
}

export function cancel(params) {
  return request({
    url: '/admin/auction/cancel',
    method: 'post',
    params: params
  })
}


export function productAdd(params) {
  return request({
    url: '/admin/auction/productAdd',
    method: 'get',
    params: params
  })
}
export function productDel(params) {
  return request({
    url: '/admin/auction/productDel',
    method: 'get',
    params: params
  })
}
export function productList(params) {
  return request({
    url: '/admin/auction/productList',
    method: 'get',
    params: params
  })
}






export function orderList(params) {
  return request({
    url: '/admin/groupPeriod/list',
    method: 'get',
    params: params
  })
}

export function getOrderList(params) {
  return request({
    url: '/admin/groupPeriod/getOrderList',
    method: 'get',
    params: params
  })
}

